// 主界面
;
define(function(require, exports, module) {
	'use strict';
	var util = require("util");
	var base = require("base");
	var router = require("../hash/pageRouter");
	var dialog = require("dialog");
	var validate = require("validate");
	var databind = require("databind");
	var tools = require("tools");
	var css_loanNotice = require("./loanNotice.css");
	var loanNoticeId;
	var pageIndex = 1,
		pageSize = 10,
		totalPageCount = 1,
		totalRecordCount = 0; //分页初始化
	var init = function(page) {
		loanNoticeId = page.params.loanNoticeId;
//		loanNoticeId = 1;
		tools.loadList("inquireLoanNoticeDetail.json", $("#loanNoticeBody"), $("#loanNoticeTpl"), {loanNoticeId: loanNoticeId}, function() {

		});
		initEvent();
		router.init();
	};
	var initEvent = function() {
		//若未登录，则返回登陆页面
		if (base.getData("sid") == null || base.getData("sid") == "" || base.getData("sid") == undefined) {
			top.location.href = "../login/login.html";
		}
	};

	return {
		init: init
	};
});